#include "networkgetfriendrequest.h"
#include <QUrl>

namespace Network {

/**
 * @brief GetFriendRequest::GetFriendRequest
 * @param parent
 */
GetFriendRequest::GetFriendRequest(int userId, QObject *parent) :
    FriendRequest(parent),
    m_userId(userId)
{
}

/**
 * @brief GetFriendRequest::url
 * @return
 */
QUrl GetFriendRequest::url() const
{
    QString url = QString("http://dev.mapi2.me.zing.vn/frs/mapi2/friend?method=friend.getlist&userId=%1&fields=userid,username,displayname,tinyurl&page=1&records=100&avatarSize=50")
            .arg(m_userId);
    return QUrl(url);
}

}
